﻿#include "Program.h"
#include "Settings.h"
#include "AutoPatcher.AMain.h"

namespace AutoPatcher
{

    void Program::Main(std::vector<std::string> &args)
    {
        Settings::Load();

        if (args.size() > 0)
        {
            Settings::AutoStart = args[0] == "Auto";
        }

        Application::EnableVisualStyles();
        Application::SetCompatibleTextRenderingDefault(false);
        AMain tempVar();
        Application::Run(&tempVar);
    }
}
